package org.lgiavedoni.android.franq.core.prediction.imp;

import lombok.Data;

import org.lgiavedoni.android.franq.core.place.Place;
import org.lgiavedoni.android.franq.core.place.PlaceManager;
import org.lgiavedoni.android.franq.core.prediction.PredictableEvent;

@Data
public class PredictedCheckInEvent implements PredictableEvent {

	private final Place place;

	@Override
	public String predictionTimeOff() {
		return "Mmm, now we should be at the \"" + place.getName() + "\"";
	}

	@Override
	public boolean checkOccurrence() {
		return place.equals(PlaceManager.inst.getCurrentPlace());

	}

	@Override
	public String toString() {
		return "Predicted CheckInEvent to \"" + place.getName() + "\"";
	}
}
